package display2012;

import it.unibo.is.interfaces.IBasicEnvAwt;
import java.awt.Panel;
import java.awt.TextField;

public class DisplayGui extends Display {
	protected Panel myPanel;
	protected TextField tarea;

	public DisplayGui(IBasicEnvAwt env) {
		super(env);
	}

	@Override
	protected void configure() {
		myPanel = new Panel();
		tarea = new TextField(6);
		tarea.setFont(new java.awt.Font("Arial", java.awt.Font.BOLD, 24));
		myPanel.add(tarea);
		env.addPanel(myPanel);
	}

	@Override
	public void showVal(String v) {
		tarea.setText(getCurVarToShow());
	}
}